FOR each plugin LOOP
    Call setup
END LOOP

DO Forever

    Get simulation time
    Reset Output Buffer
    FOR each plugin LOOP
        Run the plugin process returning new log entries
        Add simulation time and the log entries to the Output Buffer        
    END LOOP
    IF the Output Buffer is not empty THEN
        Write (append) Output Buffer to unified log file 
    END IF
    Wait one second 

END DO

